<template>
  <PageWrapper dense>
    <CollapseContainer title="备注(退款信息)">
      <BasicForm @register="registerForm"> </BasicForm>
    </CollapseContainer>
  </PageWrapper>
</template>

<script setup lang="ts">
import { BasicForm, useForm } from '@/components/Form';
import { drawerSchemas5 } from '../orderRefund.data';
import { CollapseContainer } from '@/components/Container';
import { PageWrapper } from '@/components/Page';
defineOptions({ name: 'remarkEdit' });
const [registerForm, { setFieldsValue, validate }] = useForm({
  // layout: 'vertical',
  labelWidth: 100,
  name: 'user-drawer',
  showActionButtonGroup: false,
  baseColProps: { span: 12 },
  schemas: drawerSchemas5,
});
async function handleSubmit() {
  try {
    const data = {
      ...(await validate())
    };
    return data;
  } catch (e) {
    console.log('e', e);
  } finally {
  }
}
const setFormData = (data: any) => {
  setFieldsValue(data);
};
defineExpose({ handleSubmit, setFormData });
</script>
